import axios from '../config.js'

export function getMemberInfo() {
    const url = 'mobile/member/getInfo'
    const data = {}
    return axios.get(url, { params: data })
}

export function authorizeMemberInfo(data) {
    const url = 'mobile/member/authorize'
    return axios.get(url, { params: { data: data } })
}

//获取短信验证码
export function getVerification(telephone) {
    const url = 'mobile/Note/sendNote'
    const data = {
        telephone: telephone,
        type: 4,
    }
    return axios.post(url, data)
}
//验证短信
export function identityVerification(telephone,code,encryptionUserId) {
    const url = 'mobile/Note/verifyNoteCode'
    const data = {
        telephone: telephone,
        code: code,
        type:4,
        encryptionUserId:encryptionUserId
    }
    return axios.post(url, data)
}